<template>
    <div class="btn-vue">
      <el-button
        @click="add"
        type="primary"
        class="btn"
        round>
        增加
      </el-button>
      <el-button
        @click="del"
        type="primary"
        class="btn"
        round>
        删除
      </el-button>
      <el-button
        @click="add"
        type="primary"
        class="btn"
        round>
        导入
      </el-button>
      <el-button
        @click="exportAll"
        type="primary"
        class="btn"
        round>
        导出
      </el-button>
    </div>
</template>

<script>
    import AddGoods from "./AddGoods";
    import bus from "../../../bus";
    export default {
        name: "goods_manager_btn",
      components: {AddGoods},
      methods:{
          add(){
            bus.$emit('add')
          },
          del(){
            bus.$emit('del')
          },
        exportAll(){
            bus.$emit('exportAll');
        }
      }
    }
</script>

<style scoped>
.btn-vue .btn{
  width: 10vw;
  height: auto;
  font-size: 2vh
}
</style>
